//
//  HomeDetailViewController.swift
//  swift_flutter_mix
//
//  Created by 黄德玉 on 2022/2/20.
//

import UIKit

class HomeDetailViewController: UIViewController,RouterControllerMixin {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        let btn = UIButton.init(type: .system)
        btn.setTitle("点我返回", for: .normal)
        btn.addTarget(self, action: #selector(btnClicked), for: .touchUpInside)
        btn.frame = CGRect.init(x: 0, y: 0, width: 100, height: 100)
        btn.center = view.center
        view.addSubview(btn)
    }
    
    @objc func btnClicked() {
        Router.pop()
    }

}
